package chap6.task4;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;

public class taskMP4  {
    public static void main(String[] args)  throws Exception{

    BufferedInputStream a= new BufferedInputStream(new FileInputStream("1.mp4"));
    BufferedOutputStream b=new BufferedOutputStream(new FileOutputStream("D:\\1.mp4"));
    byte[] bys=new byte[1024];
    int len=0;
        while((len=a.read())!=-1){
        b.write(bys,0,len);
    }
        a.close();
        b.close();

}
}
